Skip wandb SSL Verification
wandb is a useful platform for auto recording information and visualizing for deep learning projects. This post documents how to sync wandb logs in brief.
Table of Contents
1. Make wandb Log Locally
Sometimes, the server may not be connected to the internet for a long time. In this case, it’s better to first let wandb log locally, then connect to internet for synchronizing logs. To make wandb log locally, simply set a global environment variable:
export WANDB_MODE=offline
After training, we can find the logs (usually) located at ./wandb/run-<date>-<time>-<hash>/. Just simply type wandb sync [run-folder] to synchronize the logs.
wandb sync wandb/run-date-time-hash --include-online --include-synced
2. FAQ: SSLVerify Error
To let wandb skip SSL verification, set WANDB_INSECURE_DISABLE_SSL to true.
3. FAQ: ProxyError and TransientError
In my case, I just simply set up http_proxy and https_proxy to solve ProxyError. Make sure the proxy is actually accessible.
For TransientError, in my case, wandb just prints it several times but still successfully uploads the logs… So I guess there’s not much difference here.